<template>
    <div class="fillContain" >
        <el-row>
            <el-table>
                <table-header v-bind:tableHeaderChildData="childData"></table-header>
            </el-table>
        </el-row>
    </div>
</template>

<script>
    /* eslint-disable no-console,no-debugger */
    import {getTableData} from '@/api/getData'
    import TableHeader from '@/views/report/TableHeader.vue'
    import Util from '@/utils/util'


    export default {
        data() {
            return {
                htmlTable: '',
            }
        },
        props: ['tableHeaderData'],
        components:{
            TableHeader
        },
        computed:{
            childData : function () {
                var obj={};
                obj=Util.deepClone(this.tableHeaderData); //this.templateData是父组件传递的对象
                return obj
            }
        },
        methods: {
            async generate() {
                let reply = await getTableData(this.id);

                this.htmlTable = reply.htmlTable;
            }
        },

    }
</script>

<style>

</style>